﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript">
    function getCKToTxt() {
        if (document.getElementById('<%=CheckBox1.ClientID %>').checked) {
            document.getElementById('<%=txt安置房源面积小于被征收面积.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt安置房源面积小于被征收面积.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox2.ClientID %>').checked) {
            document.getElementById('<%=txt补偿装修费用已超过预警值.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt补偿装修费用已超过预警值.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox3.ClientID %>').checked) {
            document.getElementById('<%=txt补偿价款已超过房屋均价.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt补偿价款已超过房屋均价.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox4.ClientID %>').checked) {
            document.getElementById('<%=txt余额已低于警戒值.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt余额已低于警戒值.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox5.ClientID %>').checked) {
            document.getElementById('<%=txt账户余额为零.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt账户余额为零.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox6.ClientID %>').checked) {
            document.getElementById('<%=txt存在部分协议补偿款未支付.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt存在部分协议补偿款未支付.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox7.ClientID %>').checked) {
            document.getElementById('<%=txt到账余额已小于补偿额度.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt到账余额已小于补偿额度.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox8.ClientID %>').checked) {
            document.getElementById('<%=txt补偿总价小于评估总价.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt补偿总价小于评估总价.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox9.ClientID %>').checked) {
            document.getElementById('<%=txt补偿总价超出评估总价.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt补偿总价超出评估总价.ClientID %>').value = "0";
        }
        if (document.getElementById('<%=CheckBox10.ClientID %>').checked) {
            document.getElementById('<%=txt协议补偿款未支付.ClientID %>').value = "1";
        } else {
            document.getElementById('<%=txt协议补偿款未支付.ClientID %>').value = "0";
        }
    }
    function chickNull() {
        var tt = document.getElementById('<%=txt补偿装修费用预警值.ClientID %>').value;
        var tt2 = document.getElementById('<%=txt余额警戒值.ClientID %>').value;
        if (tt == null || tt == "") {
            alert('必须录入补偿装修费用预警值！');
            return false;
        }
        else if (tt2 == null || tt2 == "") {
            alert('必须录入余额警戒值！');
            return false;
        }
        else {
            return true;
        }
    }
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">预警参数设置 </font>
        </td>
    </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" id="compensationfundestimate" style="border-collapse: collapse;
    table-layout: fixed; width: 99%; text-align: left;" class="window_tab_list">
    <tr>
        <th colspan="3" style="text-align: center; line-height: 20px;">
            产权置换协议备案
        </th>
    </tr>
    <tr style="height: 20px;">
        <td>
            <asp:CheckBox ID="CheckBox1" runat="server" OnClick="getCKToTxt()" />
            安置房源面积小于被征收面积
        </td>
        <td>
        </td>
        <td>
        </td>
    </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" id="Table2" style="border-collapse: collapse;
    table-layout: fixed; width: 99%; text-align: left;" class="window_tab_list">
    <tr>
        <th colspan="4" style="text-align: center; line-height: 20px;">
            货币化补偿协议备案
        </th>
    </tr>
    <tr style="height: 20px;">
        <td align="left" colspan="2">
            <asp:CheckBox ID="CheckBox3" runat="server" OnClick="getCKToTxt()" />
            <asp:Label ID="Label1" runat="server" Text="补偿价款已严重超过此区域房屋均价"></asp:Label>
        </td>
        <td align="left" colspan="2">
            <asp:CheckBox ID="CheckBox2" runat="server" OnClick="getCKToTxt()" />
            <asp:Label ID="Label2" runat="server" Text="补偿装修费用已超过预警值"></asp:Label>
        </td>
    </tr>
    <tr style="height: 20px;">
        <td align="right">
            补偿装修费用预警值百分比：
        </td>
        <td colspan="2">
            <asp:TextBox ID="txt补偿装修费用预警值" runat="server"></asp:TextBox><asp:Label ID="Label3"
                runat="server" Text="% （百分比，如130%）"></asp:Label>
        </td>
        <td style="border-left-width: 0px;">
        </td>
    </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" id="Table3" style="border-collapse: collapse;
    table-layout: fixed; width: 99%; text-align: left;" class="window_tab_list">
    <tr>
        <th colspan="3" style="text-align: center; line-height: 20px;">
            补偿款基本情况
        </th>
    </tr>
    <tr style="height: 20px;">
        <td align="right">
            余额警戒值百分比：
        </td>
        <td align="left">
            <asp:TextBox ID="txt余额警戒值" runat="server"></asp:TextBox>
            <asp:Label ID="Label5" runat="server" Text="% （百分比，如20%）"></asp:Label>
        </td>
        <td>
        </td>
    </tr>
    <tr style="height: 20px;">
        <td>
            <asp:CheckBox ID="CheckBox4" runat="server" OnClick="getCKToTxt()" />
            余额已低于警戒值
        </td>
        <td>
            <asp:CheckBox ID="CheckBox5" runat="server" OnClick="getCKToTxt()" />
            账户余额为0
        </td>
        <td>
        </td>
    </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" id="Table4" style="border-collapse: collapse;
    table-layout: fixed; width: 99%; text-align: left;" class="window_tab_list">
    <tr>
        <th colspan="3" style="text-align: center; line-height: 20px;">
            协议备案数据统计
        </th>
    </tr>
    <tr style="height: 20px;">
        <td>
            <asp:CheckBox ID="CheckBox6" runat="server" OnClick="getCKToTxt()" />
            存在部分协议补偿款未支付
        </td>
        <td>
            <asp:CheckBox ID="CheckBox7" runat="server" OnClick="getCKToTxt()" />
            到账余额已小于所有协议所对应的补偿额度
        </td>
        <td>
        </td>
    </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" id="Table5" style="border-collapse: collapse;
    table-layout: fixed; width: 99%; text-align: left;" class="window_tab_list">
    <tr>
        <th colspan="3" style="text-align: center; line-height: 20px;">
            住宅补偿金分户评估
        </th>
    </tr>
    <tr style="height: 20px;">
        <td>
            <asp:CheckBox ID="CheckBox8" runat="server" OnClick="getCKToTxt()" />
            补偿总价小于评估总价
        </td>
        <td>
            <asp:CheckBox ID="CheckBox9" runat="server" OnClick="getCKToTxt()" />
            补偿总价超出评估总价
        </td>
        <td>
            <asp:CheckBox ID="CheckBox10" runat="server" OnClick="getCKToTxt()" />
            协议补偿款未支付
        </td>
    </tr>
    <tr>
        <td colspan="3" align="center">
            <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return chickNull();" />&nbsp;
        </td>
    </tr>
</table>
<div style="display: none;">
    <asp:TextBox ID="txt安置房源面积小于被征收面积" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt补偿装修费用已超过预警值" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt补偿价款已超过房屋均价" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt余额已低于警戒值" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt账户余额为零" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt存在部分协议补偿款未支付" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt到账余额已小于补偿额度" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt补偿总价小于评估总价" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt补偿总价超出评估总价" runat="server"></asp:TextBox>
    <asp:TextBox ID="txt协议补偿款未支付" runat="server"></asp:TextBox>
</div>
